package com.chenjt.controller;

import dev.langchain4j.model.chat.ChatLanguageModel;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

//import javax.annotation.Resource;

/**
 * 注释：
 *
 * @author chenjt
 * @date 2025/3/6 16:13
 */
@RestController
public class OpenAIController {

    @Resource
    private ChatLanguageModel chatLanguageModel;

    @GetMapping("/openai/hello")
    public String hello(){
        return chatLanguageModel.generate("你好，你是谁");
    }


}
